package com.qyhl.school.school.vlog.upload;



import com.qyhl.webtv.commonlib.entity.UpTokenBean;
import com.qyhl.webtv.commonlib.entity.school.SchoolThemeBean;

import java.util.List;

public class SchoolVlogUploadPresenter implements SchoolVlogUploadContract.SchoolVlogUploadPresenter {
    private SchoolVlogUploadContract.SchoolVlogUploadView mView;
    private SchoolVlogUploadModel mModel;

    public SchoolVlogUploadPresenter(SchoolVlogUploadContract.SchoolVlogUploadView mView) {
        this.mView = mView;
        this.mModel = new SchoolVlogUploadModel(this);
    }

    @Override
    public void getToken(boolean isUpload) {
         mModel.getToken(isUpload);
    }

    @Override
    public void getTokenSuccess(UpTokenBean data, boolean isUpload) {
        mView.getTokenSuccess(data,isUpload);
    }

    @Override
    public void getTokenError(boolean isUpload) {
         mView.getTokenError(isUpload);
    }

    @Override
    public void upLoadData(String info, String videoUrl, String logo, String username, int tagId) {
        mModel.upLoadData(info, videoUrl, logo, username, tagId);
    }

    @Override
    public void upLoadSuccess(String msg) {
        mView.upLoadSuccess(msg);
    }

    @Override
    public void upLoadError(String msg) {
        mView.upLoadError(msg);
    }

    @Override
    public void getTagList() {
        mModel.getTagList();
    }

    @Override
    public void setTagList(List<SchoolThemeBean> beanList) {
         mView.setTagList(beanList);
    }
}
